import request from "@/utils/request";
import {HOST} from "@/constants";
import qs from "qs";


export function pubBankProduct(data) {
    return request({
        url: `${HOST}/bank/product/add`,
        method: 'post',
        data: qs.stringify(data)
    })
}

export function passBankProduct(data) {
    return request({
        url: `${HOST}/bank/product/pass`,
        method: 'post',
        data: qs.stringify(data)
    })
}

export function makeBankProductOrder(data) {
    return request({
        url: `${HOST}/bank-product/order/make`,
        method: 'post',
        data: qs.stringify(data)
    })
}

export function getMyBankProduct(data) {
    return request({
        url: `${HOST}/bank/product/my`,
        method: 'get',
        params: data
    })
}

export function getUnpassBankProduct(data) {
    return request({
        url: `${HOST}/bank/product/unpass`,
        method: 'get',
        params: data
    })
}

export function getBankProductList(data) {
    return request({
        url: `${HOST}/bank/product/list`,
        method: 'get',
        params: data
    })
}

export function filterBankProduct(data) {
    return request({
        url: `${HOST}/bank/product/filter`,
        method: 'get',
        params: data
    })
}

export function getOneBankProduct(data) {
    return request({
        url: `${HOST}/bank/product/one`,
        method: 'get',
        params: data
    })
}


